package com.yan;

public class Test2 {
    public static void main(String args[]){

        int a[] = {1,2,3,4,5,6,7};
        int b[] = {3,4,5,6,7};
      for (int i =0 ;i<a.length;i++){
          for (int j = 0;j<b.length;j++){
              if (i==j){
                  b[j]=a[i]*b[j];
                  System.out.println(b[j]);
              }
          }
      }

    }
}
